package com.xrx.webtemplate.web.service.biz;

import com.xrx.webtemplate.common.ShiroUser;
import com.xrx.webtemplate.pojo.UserPojo;
import com.xrx.webtemplate.web.service.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by xierongxian on 2017/4/23.
 */
@Service("loginApiBiz")
public class LoginApiBiz {
    @Autowired
    private UserDao userDao;
    public ShiroUser checkLogin(String username, String password){
        Map<String,String> parmMap=new HashMap<String,String>();
        parmMap.put("username",username);
        parmMap.put("password",password);
        return  userDao.checkLogin(parmMap);
    }
}
